#define _CRT_SECURE_NO_WARNINGS 1
#include<bits/stdc++.h>
using namespace std;
//http://www.oj7.cn/
int arr[100000];
int n, m, k;
int main()
{
	cin >> n >> m >> k;
	for (int i = 0; i < n + m; i++)
	{
		cin >> arr[i];
	}
	sort(arr, arr + m + n);
	cout << arr[k - 1] << endl;
	return 0;
}